home *** CD-ROM | disk | FTP | other *** search
- #ifndef __Shell_TextRect_h
- #define __Shell_TextRect_h
-
- #ifndef __Shell_h
- #include "Shell.Shell.h"
- #endif
-
-
- extern Shell_rectblock *Shell_defaulttextrectblock;
- /* This is the wind used by Shell_Printf. */
-
-
-
- Shell_rectblock *Shell_AddTextRect(
- Shell_windblock *wind,
- int x,
- int y,
- int forecol,
- int backcol
- );
- /* Adds a text rectangle to a graphics window. (x, y) is the */
- /* coors of the top left corner. Print to the rectangle with... */
-
-
- void Shell_TextRectPrint( Shell_rectblock *rect, const char *text);
- /* Adds text to the end of the text in rectblock. The window is */
- /* resized if nescesary. */
- /* Note that the text is not formated at all, so put in a */
- /* line-feed occasionaly! */
-
- void Shell_TextRectPrintf( Shell_rectblock *rect, const char *fmt, ...);
- /* As above, but uses printf formating with parameters */
-
- #define Shell_TextRectPrintLine( rect, text) \
- { \
- Shell_TextRectPrint( rect, text); \
- Shell_TextRectPrint( rect, "\n"); \
- }
- /* Should be fairly clear what this does... */
-
-
- #endif
-